package com.acme.domain.account;

import com.acme.exceptions.NoEnoughFundsException;

import java.io.Serializable;

public interface Account extends Serializable {
    void deposit(double amount) throws IllegalArgumentException;

    void withdraw(double amount) throws NoEnoughFundsException;

    AccountType getAccountType();

    double getBalance();

    long decimalValue();
}